package com.itboye.ihomebank.controller;


import com.itboye.ihomebank.R;
import com.itboye.ihomebank.login.LoginActivity;

import android.app.Activity;
import android.content.Intent;
/**
 * 没有登录的状态
 *
 */
public class UnLoginState implements ILoginState {

	private void doUnLogin(Activity act) {
		Intent intent=new Intent(act, LoginActivity.class);
	
		act.startActivity(intent);
		act.overridePendingTransition(R.anim.anim_raiseup, 0);
	}

	
	@Override
	public void onMyMoneyClick(Activity act, Object data) {
		doUnLogin(act);
	}


	@Override
	public void onMyAppointmentClick(Activity act, Object data) {
		doUnLogin(act);
	}


	@Override
	public void onMyCollectionClick(Activity act, Object data) {
		doUnLogin(act);
	}


	@Override
	public void onMySignClick(Activity act, Object data) {
		doUnLogin(act);
	}


	@Override
	public void onMyPersonalCenter(Activity act, Object data) {
		doUnLogin(act);
		
	}


	@Override
	public void collection(Activity act, Object data) {
		// TODO Auto-generated method stub
		doUnLogin(act);
	}


	@Override
	public void beifen(Activity act, Object data) {
		doUnLogin(act);
		
	}


}
